import request from '@/utils/request'

export function getAgencyList(query) {
  return request({
    url: '/agencyInfoAuditController/queryAgencyInfoPage',
    method: 'get',
    params: query
  })
}

export function auditAgencyInfo(data) {
  return request({
    url: '/agencyInfoAuditController/auditAgencyInfo',
    method: 'post',
    data
  })
}

export function revokeAudit(data) {
  return request({
    url: '/agencyInfoAuditController/revokeAudit',
    method: 'post',
    data
  })
}

export function returnAgencyInfo(data) {
  return request({
    url: '/agencyInfoAuditController/returnAgencyInfo',
    method: 'post',
    data
  })
}
